package com.yanqu.road.entity.activity.entername.compare;

import java.util.Comparator;

public class ChannelEnterNameUserRankParamSort implements Comparator<ChannelEnterNameUserDataCompare> {

    @Override
    public int compare(ChannelEnterNameUserDataCompare o1, ChannelEnterNameUserDataCompare o2) {
        int ret = Long.compare(o2.getUserRankValue(), o1.getUserRankValue());
        if(ret != 0){
            return ret;
        }
        return Long.compare(o1.getLastUpdateTime(), o2.getLastUpdateTime());
    }
}
